<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<form action="${ctxPathA}/oa/techstack/addOrUpdate" method="post" autocomplete="off" class="show-info">
	<shield:token/>
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
        <tr>
	    	<th>
            	<label><font color="red">*</font>技术名称：</label>
        	</th>
         	<td><input type="text" name="name" value="${model.name}"></td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>标签分类：</label>
        	</th>
         	<td><input type="text" name="tags" value="${model.tags}"></td>
		</tr>
		<tr>
	    	<th>
            	<label>超链接：</label>
        	</th>
         	<td><input type="text" name="href" value="${model.href}" style="width: 85%;">
         	  	<%-- 添加样式shieldOpenLink，baseOn为选择器>分隔父子级选择器，不写默认找前一个元素 --%>
  				<a class="shieldOpenLink" >打开链接</a>
         	</td>
		</tr>
		<tr>
	    	<th>
            	<label>描述：</label>
        	</th>
         	<td><textarea name="description" maxlength="200">${model.description}</textarea></td>
		</tr>
        <tr>
	    	<th>
            	<label>状态：</label>
        	</th>
         	<td><shield:switchOput data="-1=删除|正常" value="${model.state}"></shield:switchOput></td>
		</tr>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
</shield:permssion>